package com.ttsx.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ttsx.core.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订单详情表
 * @author wb
 * @since 2025-03-03
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class OrderItem extends BaseEntity {

    private Long orderId;

    private Long productId;

    private Integer quantity;

    private BigDecimal price;

    @TableField(exist = false)
    private Product product;
}
